open and close sphere in metric space